<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        var eason ={
            name:'许嵩',
            age:18,
            sing:function(){
                console.log('清明雨上');
            }
        }
        var jay = {
            name :'稻香',
            age:22,
            sing:function(){
                console.log('给我一首歌的时间');
            }  
      
        }
        console.log(jay.age);
        jay.sing();
       //如果船舰100个英雄怎么办？
        //通过函数，有一个返回值，返回值是对象，给对象添加属性和方法。
        //对象的属性值，作为函数的参数
    </script>
</head>
<body>
    
</body>
</html>